/**
 * Generate time : 2011-07-08 3:31:41
 * Version : 1.0.1.V20070717
 */
package com.baosight.sczx.zm.cf.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;

/**
 * ZMCFNotice
 * 
 */
public class ZMCFNotice extends DaoEPBase {

	private String fdKeyId = " "; /* FD_KEY_ID */
	private String fdType = " "; /* 通知类型 */
	private String fdTitle = " "; /* 通知标题 */
	private String fdContent = " "; /* 通知内容 */
	private String fdStatus = " "; /* 通知状态 */
	private String fdIsApproval = " "; /* 是否审批 */
	private String fdPersonId = " "; /* 编制人ID */
	private String fdPerson = " "; /* 编制人 */
	private String fdApprovalId = " "; /* 审批人ID */
	private String fdApproval = " "; /* 审批人 */
	private String fdTime = " "; /* 编制时间 */
	private String fdApprovalTime = " "; /* 审批时间 */
	private String fdIsTop = " "; /* 是否置顶 */

	/**
	 * initialize the metadata
	 */
	public void initMetaData() {
		EiColumn eiColumn;

		eiColumn = new EiColumn("fdKeyId");
		eiColumn.setPrimaryKey(true);
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("FD_KEY_ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdType");
		eiColumn.setFieldLength(1);
		eiColumn.setDescName("通知类型");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdTitle");
		eiColumn.setFieldLength(50);
		eiColumn.setDescName("通知标题");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdContent");
		eiColumn.setFieldLength(3000);
		eiColumn.setDescName("通知内容");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdStatus");
		eiColumn.setFieldLength(6);
		eiColumn.setDescName("通知状态");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdIsApproval");
		eiColumn.setFieldLength(1);
		eiColumn.setDescName("是否审批");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdPersonId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("编制人ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdPerson");
		eiColumn.setFieldLength(8);
		eiColumn.setDescName("编制人");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdApprovalId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("审批人ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdApproval");
		eiColumn.setFieldLength(8);
		eiColumn.setDescName("审批人");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdTime");
		eiColumn.setFieldLength(20);
		eiColumn.setDescName("编制时间");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdApprovalTime");
		eiColumn.setFieldLength(20);
		eiColumn.setDescName("审批时间");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdIsTop");
		eiColumn.setFieldLength(1);
		eiColumn.setDescName("是否置顶");
		eiMetadata.addMeta(eiColumn);

	}

	/**
	 * the constructor
	 */
	public ZMCFNotice() {
		initMetaData();
	}

	/**
	 * get the fdKeyId - FD_KEY_ID
	 * 
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}

	/**
	 * set the fdKeyId - FD_KEY_ID
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}

	/**
	 * get the fdType - 通知类型
	 * 
	 * @return the fdType
	 */
	public String getFdType() {
		return this.fdType;
	}

	/**
	 * set the fdType - 通知类型
	 */
	public void setFdType(String fdType) {
		this.fdType = fdType;
	}

	/**
	 * get the fdTitle - 通知标题
	 * 
	 * @return the fdTitle
	 */
	public String getFdTitle() {
		return this.fdTitle;
	}

	/**
	 * set the fdTitle - 通知标题
	 */
	public void setFdTitle(String fdTitle) {
		this.fdTitle = fdTitle;
	}

	/**
	 * get the fdContent - 通知内容
	 * 
	 * @return the fdContent
	 */
	public String getFdContent() {
		return this.fdContent;
	}

	/**
	 * set the fdContent - 通知内容
	 */
	public void setFdContent(String fdContent) {
		this.fdContent = fdContent;
	}

	/**
	 * get the fdStatus - 通知状态
	 * 
	 * @return the fdStatus
	 */
	public String getFdStatus() {
		return this.fdStatus;
	}

	/**
	 * set the fdStatus - 通知状态
	 */
	public void setFdStatus(String fdStatus) {
		this.fdStatus = fdStatus;
	}

	/**
	 * get the fdIsApproval - 是否审批
	 * 
	 * @return the fdIsApproval
	 */
	public String getFdIsApproval() {
		return this.fdIsApproval;
	}

	/**
	 * set the fdIsApproval - 是否审批
	 */
	public void setFdIsApproval(String fdIsApproval) {
		this.fdIsApproval = fdIsApproval;
	}

	/**
	 * get the fdPersonId - 编制人ID
	 * 
	 * @return the fdPersonId
	 */
	public String getFdPersonId() {
		return this.fdPersonId;
	}

	/**
	 * set the fdPersonId - 编制人ID
	 */
	public void setFdPersonId(String fdPersonId) {
		this.fdPersonId = fdPersonId;
	}

	/**
	 * get the fdPerson - 编制人
	 * 
	 * @return the fdPerson
	 */
	public String getFdPerson() {
		return this.fdPerson;
	}

	/**
	 * set the fdPerson - 编制人
	 */
	public void setFdPerson(String fdPerson) {
		this.fdPerson = fdPerson;
	}

	/**
	 * get the fdApprovalId - 审批人ID
	 * 
	 * @return the fdApprovalId
	 */
	public String getFdApprovalId() {
		return this.fdApprovalId;
	}

	/**
	 * set the fdApprovalId - 审批人ID
	 */
	public void setFdApprovalId(String fdApprovalId) {
		this.fdApprovalId = fdApprovalId;
	}

	/**
	 * get the fdApproval - 审批人
	 * 
	 * @return the fdApproval
	 */
	public String getFdApproval() {
		return this.fdApproval;
	}

	/**
	 * set the fdApproval - 审批人
	 */
	public void setFdApproval(String fdApproval) {
		this.fdApproval = fdApproval;
	}

	/**
	 * get the fdTime - 编制时间
	 * 
	 * @return the fdTime
	 */
	public String getFdTime() {
		return this.fdTime;
	}

	/**
	 * set the fdTime - 编制时间
	 */
	public void setFdTime(String fdTime) {
		this.fdTime = fdTime;
	}

	/**
	 * get the fdApprovalTime - 审批时间
	 * 
	 * @return the fdApprovalTime
	 */
	public String getFdApprovalTime() {
		return this.fdApprovalTime;
	}

	/**
	 * set the fdApprovalTime - 审批时间
	 */
	public void setFdApprovalTime(String fdApprovalTime) {
		this.fdApprovalTime = fdApprovalTime;
	}

	/**
	 * get the fdIsTop - 是否置顶
	 * 
	 * @return the fdIsTop
	 */
	public String getFdIsTop() {
		return this.fdIsTop;
	}

	/**
	 * set the fdIsTop - 是否置顶
	 */
	public void setFdIsTop(String fdIsTop) {
		this.fdIsTop = fdIsTop;
	}

	/**
	 * get the value from Map
	 */
	@SuppressWarnings("rawtypes")
	public void fromMap(Map map) {

		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdType")), fdType));
		setFdTitle(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdTitle")), fdTitle));
		setFdContent(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdContent")), fdContent));
		setFdStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdStatus")), fdStatus));
		setFdIsApproval(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdIsApproval")), fdIsApproval));
		setFdPersonId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPersonId")), fdPersonId));
		setFdPerson(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPerson")), fdPerson));
		setFdApprovalId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdApprovalId")), fdApprovalId));
		setFdApproval(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdApproval")), fdApproval));
		setFdTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdTime")), fdTime));
		setFdApprovalTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdApprovalTime")), fdApprovalTime));
		setFdIsTop(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdIsTop")), fdIsTop));
	}

	/**
	 * set the value to Map
	 */
	@SuppressWarnings({ "rawtypes", "unchecked" })
	public Map toMap() {

		Map map = new HashMap();
		map.put("fdKeyId", StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));
		map.put("fdType", StringUtils.toString(fdType, eiMetadata.getMeta("fdType")));
		map.put("fdTitle", StringUtils.toString(fdTitle, eiMetadata.getMeta("fdTitle")));
		map.put("fdContent", StringUtils.toString(fdContent, eiMetadata.getMeta("fdContent")));
		map.put("fdStatus", StringUtils.toString(fdStatus, eiMetadata.getMeta("fdStatus")));
		map.put("fdIsApproval", StringUtils.toString(fdIsApproval, eiMetadata.getMeta("fdIsApproval")));
		map.put("fdPersonId", StringUtils.toString(fdPersonId, eiMetadata.getMeta("fdPersonId")));
		map.put("fdPerson", StringUtils.toString(fdPerson, eiMetadata.getMeta("fdPerson")));
		map.put("fdApprovalId", StringUtils.toString(fdApprovalId, eiMetadata.getMeta("fdApprovalId")));
		map.put("fdApproval", StringUtils.toString(fdApproval, eiMetadata.getMeta("fdApproval")));
		map.put("fdTime", StringUtils.toString(fdTime, eiMetadata.getMeta("fdTime")));
		map.put("fdApprovalTime", StringUtils.toString(fdApprovalTime, eiMetadata.getMeta("fdApprovalTime")));
		map.put("fdIsTop", StringUtils.toString(fdIsTop, eiMetadata.getMeta("fdIsTop")));

		return map;

	}
}